﻿using System;
using System.Collections;

namespace HML
{
    /// <summary>
    /// PieceProgress块状态更改事件参数
    /// </summary>
    public class PieceProgressStatusChangedEventArgs : EventArgs
    {
        private readonly bool isAllSet;
        /// <summary>
        /// 是否统一设置
        /// </summary>
        public bool IsAllSet
        {
            get { return this.isAllSet; }
        }

        private readonly ArrayList indexArr;
        /// <summary>
        /// 块索引
        /// </summary>
        public ArrayList IndexArr
        {
            get { return this.indexArr; }
        }

        private readonly ArrayList oldStatusArr;
        /// <summary>
        /// 块更改前状态
        /// </summary>
        public ArrayList OldStatusArr
        {
            get { return this.oldStatusArr; }
        }

        private readonly ArrayList newStatusArr;
        /// <summary>
        /// 块更改后状态
        /// </summary>
        public ArrayList NewStatusArr
        {
            get { return this.newStatusArr; }
        }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="isAllSet">是否统一设置</param>
        /// <param name="indexArr">块索引集合</param>
        /// <param name="oldStatusArr">块更改前状态集合</param>
        /// <param name="newStatusArr">块更改后状态集合</param>
        public PieceProgressStatusChangedEventArgs(bool isAllSet, ArrayList indexArr, ArrayList oldStatusArr, ArrayList newStatusArr)
        {
            this.isAllSet = isAllSet;
            this.indexArr = indexArr;
            this.oldStatusArr = oldStatusArr;
            this.newStatusArr = newStatusArr;
        }

    }
}
